#ifndef HEATER_H
#define HEATER_H

#include <QWidget>
#include <QGroupBox>
#include <QLabel>
#include <QPushButton>
#include <QHBoxLayout>
#include <QSettings>
#include <QMessageBox>

#include "omron_float.h"
#include "omron_int.h"
#include "omron_text.h"
#include "fins.h"

namespace Ui {
    class Heater;
}

class Heater : public QWidget
{
    Q_OBJECT

public:
    explicit Heater(QString Who, QWidget *parent = 0);
    ~Heater();

    void SetWhereFins(Fins *addr);

private slots:

public slots:
    void nextField(const QString &);
    void prevField(const QString &);


private:
    Ui::Heater *ui;

    QLabel *labelTemp;
    QLabel *labelPower;
    QPushButton *buttonSelectF;
    OmronFloat *TStop;
    OmronFloat *TTask;
    OmronFloat *TErr;
    OmronFloat *TProg;
    OmronFloat *PMax;
    OmronFloat *PCur;
    OmronText  *PMode;

    QVBoxLayout *VBox;

    Fins *WhereFins;

    QSettings *InitSettings;

    QString WhoAmI;

};

#endif // HEATER_H
